<!DOCTYPE html>
<html>
<?php
	session_start();
	include "db_function.php";
	if(isset($_SESSION['uid']) && $_SESSION['uid'] > 0){
		header("location:index.php");
		die;
	}
?>
	<head>
			<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
			<link media="all" href="css/one-debug.css" type="text/css" rel="stylesheet"/>
			<link media="all" href="css/main.css" type="text/css" rel="stylesheet"/>
			<script type=""text/javascript src="./js/jq/jquery-1.8.3.js"></script>
			<script type=""text/javascript src="./js/my.js"></script>
	</head>
	<body>
		<div class="lg-reg-box">
			<div class="ui-grid-9">
					<div class="ui-box">
						<div class="ui-box-head">
	      				    <h3 class="ui-box-head-title">登陆页面</h3>
	       					<span class="ui-box-head-text">请输入您的账号和密码</span>
	       					<a href="register.php" class="ui-box-head-more">没有账号点此注册</a>
   						 </div>
						<div class="ui-box-container">
							<div class="ui-box-content">
							<form action="./userbackend.php" method="post"  class="ui-form">
								<div class="ui-form-item">
									<label for="" class="ui-label">
	                					<span class="ui-form-required">*</span>用户名
	          						</label>
									<input type="text" name="username" class="ui-input"/><br/>
								</div>
								<div class="ui-form-item">
									<label for="" class="ui-label">
	                					<span class="ui-form-required">*</span>密码
	          						</label>
	          						<input type="password" name="pwd" class="ui-input"/>
								</div>
								<div class="ui-form-item">
								<input type="submit" name="log" value="   登陆   " class="ui-button ui-button-lorange"/> 
								</div>
							</form>
							</div>
						</div>
					</div>
			</div>
		</div>
	</body>
</html>